<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

class TOOLBAR_set {
	function _ADDSTORE(){
		//JToolBarHelper::title( JText::_( 'Taobao Orders' ), 'generic.png' );
	}
	function _EDITSTORE(){
		
	}
	function _MNGSTORE() {
		JToolBarHelper::title( JText::_( 'Taobao Store' ), 'generic.png' );
    	$toolbar=&JToolBar::getInstance('toolbar');  
    	JToolBarHelper::addNew('addstore');
    	JToolBarHelper::editList('editstore');
    	JToolBarHelper::deleteListX(JText::_( 'Taobao Store Delete Comfirm' ));
    	//$toolbar->prependButton('Link', 'archive', 'Taobao Orders Import', JURI::base().'index.php?option=com_orders&view=items&task=import');
		//JSubMenuHelper::addEntry(JText::_('Taobao Orders Mng Store'), 'index.php?option=com_orders&controller=store&view=items&task=mngstore', true); 
	}
	function _DELIVERY() {
		JToolBarHelper::title( JText::_( 'Seting Delivery' ), 'generic.png' );
    	//$toolbar=&JToolBar::getInstance('toolbar');    	
    	//$toolbar->prependButton('Link', 'archive', 'Taobao Orders Add Store', JURI::base().'index.php?option=com_orders&controller=store&view=items&task=addstore');
    	//$toolbar->prependButton('Link', 'archive', 'Taobao Orders Import', JURI::base().'index.php?option=com_orders&view=items&task=import');
	}
	function _AREA() {
		JToolBarHelper::title( JText::_( 'Seting Area' ), 'generic.png' );
	}
	function _EXPRESS() {
		JToolBarHelper::title( JText::_( 'Seting Express Company' ), 'generic.png' );
	}
	function _MNGDELIVERY($controller){
		$$controller=true;
		JSubMenuHelper::addEntry(JText::_('Seting Delivery'), 'index.php?option=com_set&controller=delivery',$delivery);
		JSubMenuHelper::addEntry(JText::_('Seting Area'), 'index.php?option=com_set&controller=area',$area);
		JSubMenuHelper::addEntry(JText::_('Seting Express Company'), 'index.php?option=com_set&controller=express',$express); 
	}
}

?>